import type { UserConfig } from 'vitepress'

export const config: UserConfig = {
  title: 'jstar-public-lib',
  description: 'jstar公共组件库',
  themeConfig: {
    docFooter: { prev: '上一篇', next: '下一篇' },
    logo: 'https://i.328888.xyz/2023/04/25/iouNDC.png',
    footer: {
      message: 'Released under the MIT License.',
      copyright: 'Copyright © 2022-PRESENT jstar'
    },
    algolia: {
      apiKey: 'jstar',
      indexName: 'jstar'
    },
    nav: [
      { text: '指南', link: '/guide/readme' },
      { text: '组件', link: '/component/rsCountTo' },
      { text: '方法', link: '/methods/count' }
    ],
    socialLinks: [{ icon: 'github', link: 'http://192.168.8.131/saas-basement/frontend/jstar-public-lib.git' }],
    sidebar: {
      '/guide/': [
        {
          text: '快速开始',
          link: '/guide/readme',
          activeMatch: '/guide/readme'
        },
        {
          text: '设计原则',
          link: '/guide/design',
          activeMatch: '/guide/design'
        }
      ],
      '/component/': [
        {
          text: '组件',
          items: [
            {
              text: '动态数字 rsCountTo',
              link: '/component/rsCountTo'
            }
          ]
        },
      ],
      '/methods/': [
        {
          text: '方法',
          items: [
            {
              text: '数字逗号分隔 count',
              link: '/methods/count'
            }
          ]
        }
      ]
    }
  }
}

export default config